package lab02.test11;

import static java.lang.StrictMath.sqrt;

public class Square extends Rectangle {
    double length;


    double  diagonal(){
        return length*sqrt(2);//sqrt为根号符号
    }

    @Override
    public double printMyWay() {
        return length+area+perimeter+diagonal();

    }
}
